package com.kylin.common.datascope;

import com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptor;
import com.kylin.common.datascope.aspect.DataScopeInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wuhao
 * @version 1.0 - 2023/3/29
 */
@Configuration
public class DataScopeMybatisPlusConfig {

    /**
     * 权限拦截插件
     */
    @Bean
    public InnerInterceptor dataScopePlusInterceptor() {
        return new DataScopeInterceptor();
    }
}
